diff options
Diffstat (limited to 'app/about/[name]')
-rw-r--r-- | app/about/[name]/page.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/about/[name]/page.tsx b/app/about/[name]/page.tsx index 411a2f0..afdbe29 100644 --- a/app/about/[name]/page.tsx +++ b/app/about/[name]/page.tsx @@ -1,3 +1,4 @@ +import { Fragment } from "react"; import Markdown from "markdown-to-jsx"; import { notFound } from "next/navigation"; @@ -20,16 +21,15 @@ export default function MemberPage({ params: { name } }) { <> <main className="mainColumn"> <InfoBar memberName={member.name} /> - <p>{member.bioShort}</p> - <Markdown>{member.bioContinued}</Markdown> + <Markdown outer="short">{member.bioShort}</Markdown> + <Markdown outer="long">{member.bioContinued}</Markdown> {member.bioFields?.length && ( - <div className={styles.glance}> {member.bioFields.map(({ name, value }) => ( - <> + <Fragment key={name}> <span className={styles.label}>{name}</span> <span>{value}</span> - </> + </Fragment> ))} </div> )} |